﻿using MediatR;
using RBAC.LuFang.API.Application.Command.deepprocessingCommand;
using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.deepprocessingCommandHandler
{
    //显示食品安全信息
    public class ShowfootPicCommandHandler:IRequestHandler<ShowfootPicCommand,List<imges>>
    {
        private readonly IdeepprocessingService _deepService;

        public ShowfootPicCommandHandler(IdeepprocessingService deepService)
        {
            _deepService = deepService;
        }

        public async Task<List<imges>> Handle(ShowfootPicCommand request, CancellationToken cancellationToken)
        {
            return await _deepService.ShowfootPic(request.imgtype, request.goodsid);
        }
    }
}
